#!/bin/bash
source ./env.sh
source ./func.sh
#source /home/zyh/eda/peta_linux/settings.sh
source /home/zyh/tools/petalnx/settings.sh
if [ $? -eq 0 ]
then
	echo "$my_lable source peta_linux settings successfully"
else
	echo "ERROR: source peta_linux failed , please check"
	exit 1
fi

#
#source /home/eda/Xilinx/petalinux/settings.sh
my_clean

echo "$my_lable will create petalinux project "
petalinux-create -t project --template zynqMP -n $my_prj_path
echo "$my_lable will cd my_prj_path and import xsa file"
cd $my_prj_path
pwd
petalinux-config --get-hw-description $my_xsa_path





